package zhihuilan.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wechat.pay.java.service.payments.model.Transaction;
import zhihuilan.common.WxMiniResponse;
import zhihuilan.dto.MyPayOrderDto;
import zhihuilan.entity.MyPayOrder;
import zhihuilan.entity.MySearch;
import zhihuilan.params.query.MyPayOrderQueryParam;

import java.math.BigDecimal;

public interface MyPayOrderService {
    String xcxgetPrepayId(MyPayOrderQueryParam myPayOrderQueryParam);

    WxMiniResponse paycallback(MyPayOrderQueryParam myPayOrderQueryParam);

    MyPayOrder selectOrderByOrderId(String order);

    MyPayOrder  getOrderInfoByOrderStatus(String order,Integer status);
    Integer editPayResult(MyPayOrder myPayOrder);

   void  success(MyPayOrder myPayOrder, Transaction transaction);

    void refunded(Transaction transaction);

    Page<MyPayOrder> getOrderList(MyPayOrderQueryParam myPayOrderQueryParam);

    MyPayOrderDto getOrderInfo(Integer id);

   Integer  updateOrderByOrder(String order);

    BigDecimal totalAmount(String guid);
}
